from wechaty import Friendship
from wechaty_plugin_contrib.contrib.on_friendship_plugin import OnFriendshipPlugin

class HowlaisiOnFriendshipPlugin(OnFriendshipPlugin):

    async def on_friendship(self, friendship: Friendship) -> None:
        # 直接调用父类的添加函数
        await super().on_friendship(friendship)
        # 添加后发送关键字列表
        contact = friendship.contact()
        # 1. 发送文字到联系人
        await contact.say("回复\"命令\"查看更多")

